import http from '../utils/request'
import specialHttp from '../utils/request/specialIndex' // 特殊请求方式，直接返回res
import * as urls from './urls.js'

// app更新
export const sysAppConfigList = (params) => {
  return http.get('/api/erpmng/sys/app/config/sysAppConfig/list', params)
}
//通过dictCode获取字典数据
export const queryDictModelByCode = (params) => {
  return http.get(urls.QUERY_DICT_MODEL_BYCODE, params)
}
// 刷新数据字典
export const queryAllDictItems = (params) => {
  return http.get('/api/erpmng/sys/dict/queryAllDictItems', params)
}
// erp数据字典
export const erpGetDictItems = (code, params) => {
  return http.get(`/api/erp/dict/getDictItems/${code}`, params)
}

// 获取首页标题信息
export const sysAppRouteList = (params) => {
  return http.get('/api/erp/eoa/sysAppRoute/getNewRouteList', params)
}

// 查看文件名字
export const getFillName = (params) => {
  return http.get(urls.QUERYBYFILLNAME, params)
}

//字典标签专用（通过code获取字典数组）
export const ajaxGetDictItems = (code, params) => {
  return http.get(`/api/erpmng/sys/dict/getDictItems/${code}`, params)
}

// 获取系统级字典
export const serviceAjaxGetDictItems = (tablePrefix, code, params) => {
  return http.get(`/api/${tablePrefix}/dict/getDictItems/${code}`, params)
}

//登录
export const login = (params) => {
  return http.post(urls.LOGIN, params)
}
// 退出登录
export const loginOut = (params) => {
  return http.get(urls.LOGOUT, params)
}
// 修改密码
export const updatePassword = (params) => {
  return http.put(urls.UPDATEPASSWORD, params)
}

// 切换部门
export const getCurrentUserDeparts = (params) => {
  return http.get(urls.GETCURRENTUSERDEPARTS, params)
}
// 选择部门
export const selectDepart = (params) => {
  return http.put(urls.SELECTDEPART, params)
}

// 新增联系人小组
export const addGroup = (params) => {
  return http.post('/api/erp/publish/erpPublishContactGroup/add', params, 1)
}

//APP首页
// 首页轮播图
export const queryImages = (params) => {
  return http.get(urls.QUERYIMAGES, params)
}
// 首页待办列表
export const taskList = (params) => {
  return http.get(urls.TASKLIST, params)
}
// 首页已办列表
export const taskHistoryList = (params) => {
  return http.get(urls.TASKHISTORYLIST, params)
}
// 首页知会列表
export const taskAllCcHistoryList = (params) => {
  return http.get(urls.TASKALLCCHISTORYLIST, params)
}
// 首页知发起列表
export const myApplyProcessList = (params) => {
  return http.get(urls.MYAPPLYPROCESSLIST, params)
}
// 首页知待提交列表
export const erpActDeformDraftRecordList = (params) => {
  return http.get('/api/erp/deformDraft/erpActDeformDraftRecord/queryClientList', params)
}
// 首页签收
export const taskClaim = (params) => {
  return http.put(urls.TASKCLAIM, params)
}
// 首页消息通知
export const listByUser = (params) => {
  return http.get(urls.LISTBYUSER, params)
}

// APP消息
// 消息列表
export const messageInfoList = (params) => {
  return http.get(urls.MESSAGEINFOLIST, params)
}
export const newsInfoList = (params) => {
  return http.get(urls.NEWSNFOLIST, params)
}
// 消息已读
export const messageInfoReadId = (params) => {
  return http.put(urls.MESSAGEINFOREADID, params)
}

// 通讯录
export const queryTreeList = (params) => {
  return http.get(urls.QUERYTREELIST, params)
}

export const queryByOrgCodeForAddressList = (params) => {
  return http.get(urls.QUERYCODELIST, params)
}
// 点位名称列表
export const getByOutletTypesAndFactorId = (params) => {
  return http.get(urls.CURVEOUTLETYPESANDFACTORLIST, params)
}

// 协同办公
// 查询流程节点信息
export const getProcessNodeInfo = (params) => {
  return http.get(urls.PROCESSNODEINFO, params)
}
// 查询流程节点信息
export const getHistoryProcessNodeInfo = (params) => {
  return http.get(urls.HISTORYPROCESSNODEINFO, params, 1)
}

// 查询流程节点信息
export const processTaskTransInfo = (params) => {
  return http.get('/api/erpmng/act/task/getProcessTaskTransInfo', params, 1)
}
// 查询流程流转信息
export const getProcessTaskTransInfo = (params) => {
  return http.get(urls.PROCESSTASKTRANSINFO, params)
}
// 查询流程图信息
export const getProcessHistoryList = (params) => {
  return http.get(urls.PROCESSHISTORY, params)
}
// 查询历史流程图信息
export const getProcessHistoryTaskList = (params) => {
  return http.get('/api/erpmng/act/task/getHisProcessTaskTransInfo', params)
}
// 查询坐标信息数据
export const getNodePositionInfo = (params) => {
  return http.get(urls.NODEPOSITIONINFO, params)
}
// 退回
export const rejectProcess = (params) => {
  return http.put(urls.REJECTPROCESS, params, 1)
}
// 提交完成
export const processComplete = (params) => {
  return http.post(urls.PORCESSCOMPLETE, params, 1)
}
// 查询processInstanceId
export const getProcessInstanceIds = (params) => {
  return http.get(urls.GETPROCESSINSTANCEID, params, 1)
}

// 查看预立项申请详情
export const queryByIdPrepareProject = (params) => {
  return http.get(urls.PREPAREQUERYBYID, params, 1)
}
// 查看预立项申请详情子表信息
export const getPrepareProjectChild = (params) => {
  return http.get(urls.PREPAREQUERYBYIDCHILDREN, params, 1)
}
// 查看立项申请详情
export const queryByIdProjectApply = (params) => {
  return http.get(urls.PROJECTAPPLYQUERYBYID, params, 1)
}
// 查看立项申请详情相关附件
export const queryByIdProjectTask = (params) => {
  return http.get(urls.PROJECTTASKQUERYBYID, params, 1)
}

// 查看投标管理详情
export const queryByIdTender = (params) => {
  return http.get(urls.TENDERQUERYBYID, params, 1)
}
// 查看投标管理详情业务详情
export const queryByIdTenderService = (params) => {
  return http.get(urls.TENDERSERVICEQUERYBYID, params, 1)
}
// 查看投标管理详情投标详情
export const queryByIdTenderList = (params) => {
  return http.get(urls.TENDERLISTQUERYBYID, params, 1)
}
// 查看投标文件申请详情
export const queryByIdTenderFile = (params) => {
  return http.get(urls.TENDERFILEQUERYBYID, params, 1)
}
// 查看投标文件申请字表
export const queryByIdTenderPersonFile = (params) => {
  return http.get(urls.TENDERPERSONFILEQUERYBYID, params, 1)
}
// 查看投标结果申请详情
export const queryByIdTenderResult = (params) => {
  return http.get(urls.TENDERRESULTQUERYBYID, params, 1)
}
// 查看投标结果申请字表
export const queryByIdTenderResultList = (params) => {
  return http.get(urls.TENDERRESULTFILEQUERYBYID, params, 1)
}
// 编辑投标结果申请
export const editTenderResultList = (params) => {
  return http.put(urls.EDITTENDERRESULTFILE, params, 1)
}

// 查看招标采购详情
export const queryByIdPurchaseApply = (params) => {
  return http.get(urls.PURCHASEAPPLYQUERYBYID, params, 1)
}
// 查看招标采购详情字表
export const queryByIdPurchaseApplyAllList = (params) => {
  return http.get(urls.PURCHASEAPPLYAllLIST, params, 1)
}
// 查看招标采购审批详情
export const queryByIdPurchaseApplyForm = (params) => {
  return http.get(urls.PURCHASEAPPLYFORMQUERYBYID, params, 1)
}
// 查看招标采购审批详情字表
export const queryByIdPurchaseApplyFormAllList = (params) => {
  return http.get(urls.PURCHASEAPPLYFORMALLLIST, params, 1)
}

// 查看定标结果确认详情
export const queryByIdPurchaseCalibration = (params) => {
  return http.get(urls.PURCHASECALIBRATIONQUERYBYID, params, 1)
}
// 查看定标结果确认详情采购申请信息
export const queryByIdPurchaseCalibrationDetailAllList = (params) => {
  return http.get(urls.PURCHASECALIBRATIONDETAILALLLIST, params, 1)
}
// 查看定标结果确认详情中标信息
export const queryByIdPurchaseCalibrationUnitAllList = (params) => {
  return http.get(urls.PURCHASECALIBRATIONUNITALLLIST, params, 1)
}
// 查看定标意见确认详情
export const queryByIdPurchaseCalibrationOpinion = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseCalibrationOpinion/queryById', params, 1)
}
// 查看定标意见确认详情采购申请信息
export const queryByIdPurchaseCalibrationOpinionDetailAllList = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseCalibrationOpinionDetail/allList', params, 1)
}
// 查看定标意见确认详情中标信息
export const queryByIdPurchaseCalibrationOpinionUnitAllList = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseCalibrationOptionUnit/allList', params, 1)
}
// 查看定标意见确认单子表
export const erpPurchaseCalibrationOpinionListOnlyForPop = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseCalibrationOpinion/listOnlyForPop', params, 1)
}
// 查看采购合同
export const queryByIdPurchaseContract = (params) => {
  return http.get(urls.PURCHASECONTRACTQUERYBYID, params, 1)
}
// 查看采购合同付款信息
export const queryByIdPurchaseContractPayAllList = (params) => {
  return http.get(urls.PURCHASECONTRACTQUERYBYIDPAYALLLIST, params, 1)
}
// 查看采购合同物料信息
export const queryByIdPurchaseContractSuppliesAllList = (params) => {
  return http.get(urls.PURCHASECONTRACTQUERYBYIDSUPPLIESALLLIST, params, 1)
}
// 查看盘点信息
export const queryByIdPurchaseWarehouseCheckBill = (params) => {
  return http.get(urls.PURCHASECHECKBILLQUERYBYID, params, 1)
}
// 查看盘点信息仓库明细
export const queryByIdPurchaseWarehouseCheckBillDetail = (params) => {
  return http.get(urls.PURCHASECHECKBILLQUERYBYIDDETAIL, params, 1)
}

// 查看物品领用单信息
export const queryByIdPurchaseRecipients = (params) => {
  return http.get(urls.PURCHASERECIPIENTSQUERYBYID, params, 1)
}
// 查看物品领用单信息物品领用明细
export const queryByIdPurchaseRecipientsAllList = (params) => {
  return http.get(urls.PURCHASERECIPIENTSQUERYBYIDALLLIST, params)
}
// 物品领用申请-新增保存
export const erpPurchaseRecipientsAdd = (params) => {
  return http.post('/api/erp/purchase/recipients/erpPurchaseRecipients/add', params, 1)
}
// 物品领用申请-新增编辑
export const erpPurchaseRecipientsEdit = (params) => {
  return http.put('/api/erp/purchase/recipients/erpPurchaseRecipients/edit', params, 1)
}
// 查看物资调拨申请信息
export const queryByIdPurchaseCannibalize = (params) => {
  return http.get(urls.PURCHASECANNIBALIZEQUERYBYID, params, 1)
}
// 查看物资调拨申请信息物资明细
export const queryByIdPurchaseCannibalizeAllList = (params) => {
  return http.get(urls.PURCHASECANNIBALIZEQUERYBYIDALLLIST, params, 1)
}

// 查询印章资质授权审核
export const queryByIdQualification = (params) => {
  return http.get(urls.QYALIFICATIONQUERYBYID, params)
}
// 查询印章资质授权审核获取id
export const queryByIdQualificationGetId = (params) => {
  return http.get(urls.QYALIFICATIONQUERYGETID, params, 1)
}
// 查询印章子表数据
export const queryByIdQualificationChild = (params) => {
  return http.get(urls.QYALIFICATIONQUERYBYID2, params, 1)
}
// 查询印章使用申请数据
export const queryByIdCertificationUse = (params) => {
  return http.get(urls.CERTIFICATIONUSEQUERYBYID, params, 1)
}
// 查询印章使用申请数据获取id
export const queryByIdCertificationUseGetId = (params) => {
  return http.get(urls.CERTIFICATIONUSEQUERYBYIDGETID, params, 1)
}
// 查询印章资质变更管理数据
export const queryByIdCertificationChange = (params) => {
  return http.get(urls.CERTIFICATIONCHANGEQUERYBYID, params, 1)
}
// 查询印章列表
export const queryByIdSealList = (params) => {
  return http.get('/api/erp/administration/seal/erpSealCertificateFileManage/list1', params, 1)
}
// 根据ids批量查询印章信息
export const queryByIdsSealInfo = (params) => {
  return http.get('/api/erp/administration/seal/erpSealCertificationChangeRecord/queryByIds2', params, 1)
}
// 新增-印章授权申请保存操作
export const addSealAuth = (params) => {
  return http.post('/api/erp/administration/seal/erpSealQualificationAuthorizationAudit/add', params, 1)
}
// 编辑-印章授权申请保存操作
export const editSealAuth = (params) => {
  return http.put('/api/erp/administration/seal/erpSealAuthorizationInformation/edit', params, 1)
}
// 新增-印章资质使用申请保存操作
export const addSealAptitude = (params) => {
  return http.post('/api/erp/administration/seal/erpSealUsageInformation/add', params, 1)
}
// 新增-印章资质使用申请详情操作
export const queryByIdSealAptitude = (params) => {
  return http.get('/api/erp/administration/seal/erpSealUsageInformation/queryById', params, 1)
}
// 编辑-印章资质使用申请保存操作
export const editSealAptitude = (params) => {
  return http.put('/api/erp/administration/seal/erpSealUsageInformation/edit', params, 1)
}
// 查询财务收款申请单审批流程
export const queryByIdcollectMoney = (params) => {
  return http.get(urls.COLLECTMONEYAPPLICATION, params, 1)
}
// 编辑财务收款申请单审批流程
export const editCollectMoney = (params) => {
  return http.put(urls.EDITCOLLECTMONEYAPPLICATION, params, 1)
}
// 查询财务收款申请单审批流程 子表
export const queryByIdBorrowMoneyChild = (params) => {
  return http.get(urls.COLLECTMONEYAPPLICATIONCHILD, params, 1)
}
// 查询财务开票申请单审批流程
export const queryByIdInvoice = (params) => {
  return http.get(urls.INVOICEAPPLICATION, params, 1)
}
// 查询财务开票申请单子表信息
export const queryByIdInvoiceChildren = (params) => {
  return http.get(urls.INVOICEAPPLICATIONCHILDREN, params, 1)
}
// 查询财务借款单审批流程
export const queryByIdBorrowLoan = (params) => {
  return http.get(urls.BORROWLOANBILL, params, 1)
}
// 查询差旅报销单审批流程
export const queryByIdReimBursement = (params) => {
  return http.get(urls.REIMBURSEMENT, params, 1)
}
// 查询差旅报销单审批流程子表 -报销详情
export const getChildrenListTravel = (params) => {
  return http.get(urls.TRAVELDETAIL, params, 1)
}
// 查询差旅报销单审批流程子表 -自驾公里数补助明细
export const getChildrenListReimbursement = (params) => {
  return http.get(urls.REIMBURSEMENTDETAIL, params, 1)
}
// 查询项目保证金审批流程
export const queryByIdprojectPosit = (params) => {
  return http.get(urls.PROJECTDEPOSITBILL, params, 1)
}
// 查询付款单审批流程
export const queryByIdPaymentSlip = (params) => {
  return http.get(urls.PAYMENTSLIP, params, 1)
}
// 查询付款单审批流程 -- 子表信息
export const getChildrenListPayment = (params) => {
  return http.get(urls.PAYMENTSLIPDETAIL, params, 1)
}
// 查询工程进度款支付申请单审批流程
export const queryByIdProjectPayment = (params) => {
  return http.get(urls.PROJECTPROCESSPAYMENT, params, 1)
}
// 查询工程进度款支付申请单审批流程 -- 施工方信息子表信息
export const getChildrenListParty = (params) => {
  return http.get(urls.PROJECTPROCESSPAYMENTPARTYINFO, params, 1)
}
// 查询工程进度款支付申请单审批流程 -- 建设方信息子表信息
export const getChildrenListOwner = (params) => {
  return http.get(urls.PROJECTPROCESSPAYMENTOWNER, params, 1)
}
// 查询费用报销审批流程
export const queryByIdreimbursementBill = (params) => {
  return http.get(urls.REIMBURSEMENTBILL, params, 1)
}
// 查询费用报销审批流程 -- 工资福利子表信息
export const getChildrenListSalary = (params) => {
  return http.get(urls.REIMBURSEMENTBILLSALARY, params, 1)
}
// 查询费用报销审批流程 -- 费用子表信息
export const getChildrenListDaily = (params) => {
  return http.get(urls.REIMBURSEMENTBILLDAILY, params, 1)
}
// 查询费用报销审批流程 -- 报销采购子表信息
export const getChildrenListPurchasey = (params) => {
  return http.get(urls.REIMBURSEMENTBILLPURCHASEY, params, 1)
}
// 根据id查询提现信息
export const queryByIdWithdrawMoney = (params) => {
  return http.get(urls.WITHDRAWMONEY, params, 1)
}
// 查询还款单审批流程
export const queryByIdFinancePaymentSlip = (params) => {
  return http.get(urls.FINANCEREPAYMENTSLIP, params, 1)
}
// 查询还款单审批流程 -- 子表信息
export const getChildrenListSlip = (params) => {
  return http.get(urls.PAYMENTSLIPDETAILLIST, params, 1)
}
// 查询车辆列表
export const queryCarNumList = (params) => {
  return http.get('/api/erp/carmaintenance/erpCarMaintenance/carNumList', params, 1)
}
// 新增车辆维修保养申请
export const addCarMaintenance = (params) => {
  return http.post('/api/erp/carmaintenance/erpCarMaintenance/add', params, 1)
}
// 编辑车辆维修保养申请
export const editCarMaintenance = (params) => {
  return http.put('/api/erp/carmaintenance/erpCarMaintenance/edit', params, 1)
}
// 查询车辆维修保养申请
export const queryByIdCarMaintenance = (params) => {
  return http.get(urls.CARMAINTENANCE, params, 1)
}
// 物品维修申请-新增保存
export const addGoodsMaintenance = (params) => {
  return http.post('/api/erp/workbench/article/erpGoodsMaintenance/add', params, 1)
}
// 查询物品维修申请
export const queryByIdGoodsMaintenance = (params) => {
  return http.get(urls.GOODSMAINTENANCE, params, 1)
}
// 查询车辆维修保养申请 -- 子表信息
export const getChildrenListCarMaintenance = (params) => {
  return http.get(urls.CARMAINTENANCEDETAILIST, params)
}
// 查询车辆使用申请
export const queryByIdCarUsing = (params) => {
  return http.get(urls.CARUSING, params, 1)
}
// 编辑车辆使用申请
export const editCarUsing = (params) => {
  return http.put(urls.EDITCARUSING, params, 1)
}
// 添加车辆补贴申请-保存
export const addErpCarSubsidy = (params) => {
  return http.post('/api/erp/workbench/article/erpCarSubsidy/add', params, 1)
}
// 查询入职申请单审批流程
export const queryByIdHrInduction = (params) => {
  return http.get(urls.HRINDUCTION, params, 1)
}
// 查询入职申请员工使用期考核信息
export const queryByIdHrRegular = (params) => {
  return http.get(urls.HREMPLOYEEREGULARID, params, 1)
}
// 查询入职申请员工使用期考核信息2
export const queryByIdEmployeeId = (params) => {
  return http.get(urls.EMPLOYEEINDUCTIONBYEMPLOYEEID, params, 1)
}
// 查询入职申请员工使用期考核信息列表
export const queryByIdHrRoot = (params) => {
  return http.get(urls.HREMPLOYEETREEROOT, params, 1)
}
// 查询岗位需求申请
export const queryByIdHrPostRequirement = (params) => {
  return http.get(urls.HRPOSTREQUIREMENT, params, 1)
}
// 岗位需求申请 判断是否已经审批成功
export const queryHrPostRequirement = (params) => {
  return http.get('/api/erp/hr/post/erpHrPostRequirementBill/queryTempData', params, 1)
}
// 查询入职人员列表
export const queryEntryPersonList = (params) => {
  return http.get('/api/erp/hr/apply/erpHrApplyRegisterBill/list2', params, 1)
}
// 根据id查询入职人员信息
export const queryEntryPersonInfo = (params) => {
  return http.get('/api/erp/hr/apply/erpHrApplyRegisterBill/queryBillById', params, 1)
}
// 查询岗位需求申请 --子表
export const getChildrenListReirement = (params) => {
  return http.get(urls.HRPOSTREQUIREMENTITEM, params, 1)
}
// 新建入职申请-保存
export const addEntryPerson = (params) => {
  return http.post('/api/erp/hr/induction/erpHrInductionBill/add', params, 1)
}
// 新建入职申请-编辑
export const editEntryPerson = (params) => {
  return http.put('/api/erp/hr/induction/erpHrInductionBill/edit', params, 1)
}
// 新建入职申请-查询
export const queryByIdEntryPerson = (params) => {
  return http.get('/api/erp/hr/induction/erpHrInductionBill/queryById', params, 1)
}
// 查询转正申请
export const queryByIdHrEmployeeRegular = (params) => {
  return http.get(urls.HREMPLOYEEREGULAR, params, 1)
}
// 编辑转正申请
export const editHrEmployeeRegular = (params) => {
  return http.put(urls.EDITHREMPLOYEEREGULAR, params, 1)
}
// 转正申请 判断是否已经审批成功
export const queryEmployeeRegularSuccess = (params) => {
  return http.get('/api/erp/hr/regular/erpHrEmployeeRegularBill/querySuccessRegularByEmployeeId', params, 1)
}
// 转正申请 判断是否存在未提交的审批单
export const queryEmployeeRegularTempData = (params) => {
  return http.get('/api/erp/hr/regular/erpHrEmployeeRegularBill/queryTempData', params, 1)
}
// 查询调岗调薪申请单审批流程
export const queryByIdHrSalaryAdjuctment = (params) => {
  return http.get(urls.HRSALARYADJUSTMENT, params, 1)
}
// 查询离职申请单审批流程
export const queryByIdHreMPLOYEErESIGN = (params) => {
  return http.get(urls.HREMPLOYEERESIGN, params, 1)
}
// 查询平台账号管理流程
export const queryByIdPlatformAccount = (params) => {
  return http.get(urls.PLATFORMACCOUNT, params, 1)
}
// 查询合同申请及变更流程
export const queryByIdContractManager = (params) => {
  return http.get(urls.CONTRACTMANAGER, params, 1)
}
// 查询合同申请及变更流程 -- 收款计划子表
export const getChildrenListPlan = (params) => {
  return http.get(urls.CHILDRENPLAN, params, 1)
}
// 查询合同申请及变更流程 -- 任务信息子表
export const getChildrenListClass = (params) => {
  return http.get(urls.CHILDRENCLASS, params, 1)
}
// 查询合同申请及变更流程 -- 受托方信息子表
export const getChildrenListTrustee = (params) => {
  return http.get(urls.CHILDRENTRUSTEE, params, 1)
}
// 查询合同申请及变更流程 -- 委托方信息子表
export const getChildrenListEntrust = (params) => {
  return http.get(urls.CHILDRENENTRUST, params, 1)
}
// 查询合同借阅审批流程
export const queryByIdContractBorrowManager = (params) => {
  return http.get(urls.CONTRACTBORROWMANAGER, params, 1)
}

// 根据id查询费用报销关联单据编号 - 收款单
export const queryByIdFinanceLoanBill = (params) => {
  return http.get(urls.FINANCELOANBILLBYID, params, 1)
}
// 根据id查询费用报销关联单据编号 - 付款单
export const queryByIdFinancePaymentSlipFeeDetail = (params) => {
  return http.get(urls.FINANCEINFOBILLBYID, params, 1)
}
// 根据id查询费用报销关联单据编号 - 保证金
export const queryByIdFinanceProjectDepositBill = (params) => {
  return http.get(urls.FINANCEDEPOSITBILLBYID, params, 1)
}

// 收款申请单查询保证金类型和保证金金额
export const queryByIdFinanceDepositBil = (params) => {
  return http.get(urls.FINANCEPROJECTDEPOSITBILLBYID, params, 1)
}
// 笔记本采购申请流程
export const queryByIdComputer = (params) => {
  return http.get(urls.COMPUTERBYID, params, 1)
}
// 笔记本采购申请-新增保存
export const erpComputerPurchaseAdd = (params) => {
  return http.post('/api/erp/workbench/article/erpComputerPurchase/add', params, 1)
}
// 笔记本采购申请流程子表电脑明细
export const computerAllist = (params) => {
  return http.get(urls.COMPUTERAILIST, params, 1)
}
// 车辆使用申请流程
export const queryByIdCarSubidy = (params) => {
  return http.get(urls.CARSUBIDYBYID, params, 1)
}

// 经营团队组件
export const erpOmcTeamManager = (params) => {
  return http.get(urls.ERP_OMC_TEAM_MANAGER_LIST, params)
}

export const queryPostInfoByFinance = (params) => {
  return http.get('/api/erp/files/employee/erpEmployeePostChangeRecord/queryPostInfoByFinance', params)
}
// 经营团队组件详情
export const erpOmcTeamManagerId = (params) => {
  return http.get('/api/erp/omc/teammanager/erpOmcTeamManager/queryById', params)
}

// 往来单位组件
// 列表
export const erpPurchaseSupplierList = (params) => {
  return http.get('/api/erp/purchase/supplier/erpPurchaseSupplier/list', params)
}
// 详情
export const erpPurchaseSupplierId = (params) => {
  return http.get('/api/erp/purchase/supplier/erpPurchaseSupplier/queryById', params)
}
// 联系方式
export const erpOmcCustomerManagerContactId = (params) => {
  return http.get('/api/erp/omc/customermanager/erpOmcCustomerManagerContact/queryById', params)
}

// 合同申请及变更流程 - 任务信息
export const erpOmcContractManagerClassListAll = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerClass/listAll', params)
}
// 合同申请及变更流程 - 收付款计划
export const erpOmcContractManagerPlanListAll = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerPlan/listAll', params)
}
// 受托方
export const erpOmcContractManagerEntrustListAll = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerEntrust/listAll', params)
}
// 委托方
export const erpOmcContractManagerTrusteeListAll = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerTrustee/listAll', params)
}
// 编辑
export const erpOmcContractManagerEdit = (params) => {
  return http.put('/api/erp/omc/contractmanager/erpOmcContractManager/edit', params)
}

// 公司详情
export const erpCompanyFilesId = (params) => {
  return http.get('/api/erp/files/company/erpCompanyFiles/queryById', params)
}
// 公司列表
export const erpCompanyFilesList = (params) => {
  return http.get('/api/erp/files/company/erpCompanyFiles/list', params)
}

// 项目合同列表
export const erpOmcContractManagerFinalList = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerFinal/list2', params)
}
// 项目合同详情
export const erpOmcContractManagerFinalId = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerFinal/queryById', params)
}
// 项目合同详情多个 id
export const erpOmcContractManagerFinalIds = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerFinal/queryByIds', params)
}

// 人员列表
export const erpmngUserList = (params) => {
  return http.get('/api/erpmng/sys/user/list', params)
}
// 人员列表
export const getUserListOrder = (params) => {
  return http.get('/api/erpmng/sys/user/userList', params)
}
// 人员详情
export const erpmngUserId = (params) => {
  return http.get('/api/erpmng/sys/user/queryByEmpId', params)
}
// 人员详情列表
export const erpmngUserIds = (params) => {
  return http.get('/api/erpmng/sys/user/queryByEmpIds', params)
}

// 开票信息
export const erpFinanceInvoiceHandleRecordList = (params) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceHandleRecord/list', params)
}

// 开票编辑
export const erpFinanceInvoiceApplicationBillEdit = (params) => {
  return http.put('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/edit', params)
}

// 开票编辑
export const addInvoiceHandleRecordList = (tablePrefix, params) => {
  return http.post('/api/erp/finance/invoice/erpFinanceInvoiceHandleRecord/addInvoiceHandleRecordList/' + tablePrefix, params)
}

// 投标申请编辑
export const erpOmcTenderEdit = (params) => {
  return http.put('/api/erp/omc/tender/erpOmcTender/edit', params)
}

// 保证金申请单列表
export const erpFinanceProjectDepositBillAllList = (params) => {
  return http.get('/api/erp/finance/deposit/erpFinanceProjectDepositBill/allList', params)
}

// 保证金申请单列表
export const erpFinanceProjectDepositBillqueryByEntity = (params) => {
  return http.get('/api/erp/finance/deposit/erpFinanceProjectDepositBill/queryByEntity', params)
}

// 项目列表
export const queryOmcPrepareProjectList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProject/queryOmcPrepareProjectList', params)
}
// 项目变更列表
export const queryOmcProjectList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProject/queryOmcProjectList', params)
}
// 报告审核单
export const erpReportAuditList = (params) => {
  return http.get('/api/erp/omc/reportaudit/erpReportAudit/list', params)
}
// 项目详情
export const erpOmcProjectId = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProject/queryById', params)
}
// 项目详情
export const erpOmcProjectIds = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProject/queryByIds', params)
}
// 
export const erpReportAuditQueryById = (params) => {
  return http.get('/api/erp/omc/reportaudit/erpReportAudit/queryById', params)
}
// 查询项目经理
export const querySupplierByIds = (params) => {
  return http.get('/api/erp/purchase/supplier/erpPurchaseSupplier/queryByIds', params)
}

// 关联收款进度列表
export const queryValidPaymentListByContractId = (params) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/queryListByContractId', params)
}
// 关联收款进度详情
export const erpProgressPaymentNodeId = (params) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/queryById', params)
}

// 部门列表
export const sysDepartQueryTreeList = (params) => {
  return http.get('/api/erpmng/sys/sysDepart/queryTreeList', params)
}

// 查询姓名
export const erpEmployeeFileQueryFileById = (params) => {
  return http.get('/api/erp/files/employee/erpEmployeeFile/queryFileById', params)
}

// 项目类

export const erpOmcContractManagerFinalQueryById = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerFinal/queryById', params)
}

// 费用报销单 - 合同款项详情

export const erpProgressPaymentNodeQueryByIds = (params) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/queryByIds', params)
}

// 资金调拨申请单 - 详情

export const erpCapitalAllotQueryById = (params) => {
  return http.get('/api/erp/finance/capitalAllot/erpCapitalAllot/queryById', params)
}

// 团队切割申请单 - 详情
export const erpFinanceTeamCutBillQueryById = (params) => {
  return http.get('/api/erp/finance/team/erpFinanceTeamCutBill/queryById', params)
}

// 通知栏 - tab
export const eoaCmsMenuSelectTree = (params) => {
  return http.get('/api/erp/workbench/article/eoaCmsMenu/list', params)
}

// 极光推送注册id
export const sysJpushUserRelationsPush = (params) => {
  return http.post('/api/erpmng/sys/jpush/sysJpushUserRelations/push', params)
}

// 获取单据编号
export const generatedFormNumber = (params) => {
  return http.get('/api/erp/base/generatedFormNumber', params)
}

// 项目管理 - 立项管理
// 获取业务分类
export const filesBusinessCategoryList = (params) => {
  return http.get('/api/erp/files/category/filesBusinessCategory/queryTreeList', params)
}
// 添加
export const erpOmcPrepareProjectAdd = (params) => {
  return http.post('/api/erp/omc/prepareproject/erpOmcPrepareProject/add', params)
}
// 编辑
export const erpOmcPrepareProjectEdit = (params) => {
  return http.put('/api/erp/omc/prepareproject/erpOmcPrepareProject/edit', params)
}
// 查看详情
export const erpOmcPrepareProjectId = (params) => {
  return http.get('/api/erp/omc/prepareproject/erpOmcPrepareProject/queryById', params)
}
// 查看流程节点人员配置
export const getBpmListByCode = (params) => {
  return http.get('/api/erp/base/getBpmListByCode', params)
}
// 提交流程审批人员
export const addPeopleBatch = (params) => {
  return http.post('/api/erp/process/erpProcessConfigData/addBatch', params)
}
// 绑定流程审批页面
export const startMutilProcess = (params) => {
  return http.post('/api/erpmng/act/process/extActProcess/startMutilProcess', params)
}

// 关联任务分类
export const relationTaskList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/list', params)
}
// 分类详情
export const relationTaskInfo = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/queryById', params)
}

// 投标档案详情
export const erpOmcTenderFinalId = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTenderFinal/queryById', params)
}
// 投标档案详情多个
export const erpOmcTenderFinalIds = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTenderFinal/queryByIds', params)
}
// 投标档案列表
export const erpOmcProjectTaskList = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTenderFinal/listForPop', params)
}

// 油卡人员列表
export const erpOmcProjectOilCardList = (params) => {
  return http.get('/api/erp/modules/workbench/oilSubsidy/erpOilCardManager/list', params)
}

// 油卡人员详情
export const erpOmcProjectOilCardInfo = (params) => {
  return http.get('/api/erp/modules/workbench/oilSubsidy/erpOilCardManager/queryById', params)
}

// 油卡人员列表--V2
export const erpOilCardManagerPopList = (params) => {
  return http.get('/api/erp/modules/workbench/oilSubsidy/erpOilCardManager/popList', params)
}

// 借款申请下拉列表
export const erpFinanceBorrowBillList = (params) => {
  return http.get('/api/erp/finance/borrow/erpFinanceLoanBill/list', params)
}

// 借款申请详情
export const erpFinanceBorrowBillInfo = (params) => {
  return http.get('/api/erp/finance/borrow/erpFinanceLoanBill/queryById', params)
}

export const invoiceList = (params) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/invoiceList', params)
}

export const invoiceQueryById = (params) => {
  return http.get('/api/erp/finance/invoice/erpFinanceInvoiceApplicationBill/queryById', params)
}

// 合同款项列表
export const queryListByContractId = (params) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/queryListByContractId', params)
}

// 合同款项详情
export const erpProgressPaymentNodeQueryById = (params) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/queryById', params)
}

// 采购合同列表
export const erpPurchaseContractList = (params) => {
  return http.get('/api/erp/purchase/contract/erpPurchaseContract/allList', params)
}

// 采购合同详情
export const erpPurchaseContractQueryById = (params) => {
  return http.get('/api/erp/purchase/contract/erpPurchaseContract/queryById', params)
}

// 采购合同列表
export const erpPurchaseCalibrationList = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseCalibration/allList', params)
}

// 采购合同详情
export const erpPurchaseCalibrationQueryById = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseCalibration/queryById', params)
}

// 立项申请添加
export const erpOmcProjectApplyAdd = (params) => {
  return http.post('/api/erp/omc/project/erpOmcProjectApply/add', params)
}
// 立项申请编辑
export const erpOmcProjectApplyEdit = (params) => {
  return http.put('/api/erp/omc/project/erpOmcProjectApply/editProject', params)
}
// 立项申请详情
export const erpOmcProjectApplyQueryById = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectApply/queryById', params)
}
// 立项申请预立项子表数据
export const erpOmcProjectApplyQueryByProjectId = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/queryByProjectId', params)
}
// 立项申请投标档案子表数据
export const erpOmcProjectApplyQueryTenderResultByEntity = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTenderResultFinal/queryTenderResultByEntity', params)
}
// 立项申请投标档案子表数据
export const erpOmcProjectApplyQueryTenderServiceListByTenderId = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTenderServiceFinal/queryTenderServiceListByTenderId', params)
}

// 校验该预立项是否存在，如果存在则无法提交
export const erpOmcProjectCheckProjectTenderEnd = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProject/checkProjectTenderEnd', params)
}

// 编辑获取子表 - 特殊获取方式
export const erpOmcProjectTaskListById = (params) => {
  return specialHttp.get('/api/erp/omc/project/erpOmcProjectTask/listById', params)
}
// export const verifyProjectAbnormalTermination = (params) => {
//   return specialHttp.get('/api/erp/omc/project/erpOmcProject/verifyProjectAbnormalTermination', params)
// }
// 编辑获取子表 - 特殊获取方式
export const queryTenderServiceListByTenderId = (params) => {
  return specialHttp.get('/api/erp/omc/tender/erpOmcTenderService/queryTenderServiceListByTenderId', params)
}
// 合同变更选择合同时带出的任务数据
export const listContractFinalTaskByProjectId = (params) => {
  return specialHttp.get('/api/erp/omc/project/erpOmcProjectTask/listContractFinalTaskByProjectId', params)
}

// 投标申请详情
export const erpOmcTenderQueryById = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTender/queryById', params)
}
// 投标申请添加
export const erpOmcTenderAdd = (params) => {
  return http.post('/api/erp/omc/tender/erpOmcTender/add', params)
}
// 投标申请详情
export const erpOmcTenderQueryEdit = (params) => {
  return http.put('/api/erp/omc/tender/erpOmcTender/edit', params)
}

// 投标文件审核
export const queryTenderListByTenderId = (params) => {
  return http.get('/api/erp/omc/tender/erpOmcTenderUnitFinal/queryTenderListByTenderId', params)
}
// 投标文件审核详情
export const erpOmcTenderFileQueryById = (params) => {
  return http.get('/api/erp/omc/tenderfile/erpOmcTenderFile/queryById', params)
}
// 投标文件审核添加
export const erpOmcTenderFileAdd = (params) => {
  return http.post('/api/erp/omc/tenderfile/erpOmcTenderFile/add', params)
}
// 投标文件审核编辑
export const erpOmcTenderFileEdit = (params) => {
  return http.put('/api/erp/omc/tenderfile/erpOmcTenderFile/edit', params)
}

// 投标结果申请详情
export const erpOmcTenderResultQueryById = (params) => {
  return http.get('/api/erp/omc/tenderresult/erpOmcTenderResult/queryById', params)
}
// 投标结果申请添加
export const erpOmcTenderResultAdd = (params) => {
  return http.post('/api/erp/omc/tenderresult/erpOmcTenderResult/add', params)
}
// 投标结果申请编辑
export const erpOmcTenderResultEdit = (params) => {
  return http.put('/api/erp/omc/tenderresult/erpOmcTenderResult/edit', params)
}

// 平台账号申请详情
export const erpOmcPlatformAccountQueryById = (params) => {
  return http.get('/api/erp/omc/platformaccount/erpOmcPlatformAccount/queryById', params)
}
// 平台账号申请添加
export const erpOmcPlatformAccountAdd = (params) => {
  return http.post('/api/erp/omc/platformaccount/erpOmcPlatformAccount/add', params)
}
// 平台账号申请编辑
export const erpOmcPlatformAccountEdit = (params) => {
  return http.put('/api/erp/omc/platformaccount/erpOmcPlatformAccount/edit', params)
}

// 查询平台账号列表
export const erpOmcPlatformAccountFinalList = (params) => {
  return http.get('/api/erp/omc/platformaccount/erpOmcPlatformAccountFinal/list2', params)
}
// 查询平台账号详情
export const erpOmcPlatformAccountFinalQueryById = (params) => {
  return http.get('/api/erp/omc/platformaccount/erpOmcPlatformAccountFinal/queryById', params)
}
// 查询平台账号列表
export const erpOmcPlatformAccountFinalQueryByIds = (params) => {
  return http.get('/api/erp/omc/platformaccount/erpOmcPlatformAccountFinal/queryByIds', params)
}

// 修改为变更中
export const erpOmcPlatformAccountFinalUpdateStatus = (params) => {
  return http.get('/api/erp/omc/platformaccount/erpOmcPlatformAccountFinal/updateStatus', params)
}

// 采购申请列表
export const erpPurchaseApplyFormAllList = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyForm/allList', params)
}

// 采购申请详情
export const erpPurchaseApplyFormQueryById = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyForm/queryById', params)
}

// 采购大类
export const erpPurchaseCategoryList = (params) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryAllParent', params)
}

// 采购小类
export const erpPurchaseCategoryChildList = (params) => {
  return http.get('/api/erp/purchase/material/erpMaterialCategory/queryChildrenByParentId', params)
}

// 物料列表
export const erpPurchaseMaterialList = (params) => {
  return http.get('/api/erp/purchase/material/erpMaterial/list', params)
}

// 物料详情
export const erpPurchaseMaterialQueryById = (params) => {
  return http.get('/api/erp/purchase/material/erpMaterial/queryById', params)
}
export const erpPurchaseMaterialQueryByIds = (params) => {
  return http.get('/api/erp/purchase/material/erpMaterial/queryByIds', params)
}

export const erpOmcContractManagerPlanFinalList = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerPlanFinal/listAll', params)
}

// 任務信息
export const erpOmcContractManagerClassFinalList = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerClassFinal/listAll', params)
}
export const erpOmcContractManagerClassList2 = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/listByProjectId', params)
}
export const erpOmcContractManagerClassList3 = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/listById', params)
}
// 任務信息
export const erpOmcContractManagerTrusteeFinalList = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerTrusteeFinal/listAll', params)
}
// 任務信息
export const erpOmcContractManagerEntrustFinalList = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerEntrustFinal/listAll', params)
}

// 关联招标采购申请单
export const erpPurchaseApplyInvitationAllList = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyInvitation/allList', params)
}

export const erpPurchaseApplyInvitationQueryById = (params) => {
  return http.get('/api/erp/purchase/procurement/erpPurchaseApplyInvitation/queryById', params)
}

// 任务委托流程
export const erpOmcTaskDistributionId = (params) => {
  return http.get('/api/erp/omc/task/erpOmcTaskDistribution/queryById', params)
}
export const queryPayGradeByEmpId = (params) => {
  return http.get('/api/erp/files/employee/erpEmployeeFile/queryPayGradeByEmpId', params)
}
// 获取任务详情 - 列表
export const erpOmcProjectTaskFinalList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTaskFinal/queryPageList', params)
}
export const erpOmcProjectTaskFinalQueryAllPageList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTaskFinal/queryAllPageList', params)
}
// 获取项目成员情况列表
export const erpOmcTaskDistributionDtList = (params) => {
  return http.get('/api/erp/omc/task/erpOmcTaskDistributionDt/list', params)
}
// 编辑
export const erpOmcTaskDistributionEdit = (params) => {
  return http.put('/api/erp/omc/task/erpOmcTaskDistribution/edit', params)
}
// 选择部门带出部门负责人
export const queryUsersByUsernames = (params) => {
  return specialHttp.get('/api/erpmng/sys/api/queryUsersByUsernames', params)
}
// 进度模板
// 进度模板详情
export const erpProgressTemplateId = (params) => {
  return http.get('/api/erp/progress/erpProgressTemplate/queryById', params)
}
// 进度模板列表
export const erpProgressTemplateList = (params) => {
  return http.get('/api/erp/progress/erpProgressTemplate/list', params)
}
// 进度模板列表
export const erpProgressTemplateDtList = (params) => {
  return http.get('/api/erp/progress/erpProgressTemplateDt/queryByMainId', params)
}

// 款项进度列表
export const erpOmcTaskDistributionPaymentList = (params) => {
  return http.get('/api/erp/omc/task/erpOmcTaskDistribution/queryTaskPaymentList', params)
}
// 款项进度编辑列表
export const erpOmcTaskDistributionPaymentNodeList = (params) => {
  return http.get('/api/erp/omc/task/erpOmcTaskDistribution/queryPaymentNodeListByMainId', params)
}
// 绩效提取单
export const erpHrPerformanceExtractBillQuerybyid = (params) => {
  return http.get('/api/erp/omc/task/achievementsextraction/erpAchievementsExtraction/queryById', params)
}
export const erpHrPerformanceExtractBillEdit = (params) => {
  return http.get('/api/erp/omc/task/achievementsextraction/erpAchievementsExtraction/edit', params)
}
export const erpHrPerformanceExtractBillAdd = (params) => {
  return http.post('/api/erp/omc/task/achievementsextraction/erpAchievementsExtraction/add', params)
}
export const erpHrPerformanceExtractBillNo = (params) => {
  return http.get('/api/erp/omc/task/achievementsextraction/erpAchievementsExtraction/getBillNo', params)
}
export const erpHrPerformanceExtractDataList = (params) => {
  return http.get('/api/erp/omc/task/achievementsextraction/erpAchievementsExtractionDt/list', params)
}

// 报告审核单
export const erpOmcTaskReportAuditQuerybyid = (params) => {
  return http.get('/api/erp/omc/reportaudit/erpReportAudit/queryById', params)
}
export const erpOmcTaskReportAuditEdit = (params) => {
  return http.put('/api/erp/omc/reportaudit/erpReportAudit/edit', params)
}
export const erpOmcTaskReportAuditAdd = (params) => {
  return http.post('/api/erp/omc/reportaudit/erpReportAudit/add', params)
}

// 诉讼申请单
export const erpAuditLitigationAdd = (params) => {
  return http.post('/api/erp/audit/litigation/erpAuditLitigation/add', params)
}
export const erpAuditLitigationEdit = (params) => {
  return http.put('/api/erp/audit/litigation/erpAuditLitigation/edit', params)
}
export const erpAuditLitigationQueryById = (params) => {
  return http.get('/api/erp/audit/litigation/erpAuditLitigation/queryById', params, 1)
}
export const queryProjectReportById = (params) => {
  return http.get('/api/erp/project/report/erpProjectReport/queryById', params)
}
export const erpAuditLitigationGetBillNo = (params) => {
  return http.get('/api/erp/audit/litigation/erpAuditLitigation/getBillNo', params)
}
export const queryContractFinal = (params) => {
  return http.get('/api/erp/omc/contractmanager/erpOmcContractManagerFinal/list', params)
}
export const queryProjectTaskList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/list', params)
}
export const queryProgressPaymentNode = (params) => {
  return http.get('/api/erp/progress/erpProgressPaymentNode/queryListByContractId', params)
}
export const erpAuditLitigationDetailList = (params) => {
  return http.get('/api/erp/audit/litigation/erpAuditLitigationDetail/list', params)
}

// 移交申请单
export const erpAuditTransferApplicationInfoList = (params) => {
  return http.get('/api/erp/audit/auditTransferApplication/erpAuditTransferApplicationInfo/list', params)
}
export const erpAuditTransferApplicationInfoQueryById = (params) => {
  return http.get('/api/erp/audit/auditTransferApplication/erpAuditTransferApplication/queryById', params)
}

// 回款免责补提交申请单
export const erpProjectReportQueryById = (params) => {
  return http.get('/api/erp/audit/paybackDisclaimer/paybackDisclaimer/queryById', params, 1)
}
export const erpProjectReportPaybackDisclaimerDisclaimerInfoList = (params) => {
  return http.get('/api/erp/audit/paybackDisclaimer/paybackDisclaimerDisclaimerInfo/list', params)
}
export const erpProjectReportPaybackPaybackDisclaimerTaskInfo = (params) => {
  return http.get('/api/erp/audit/paybackDisclaimer/paybackDisclaimerTaskInfo/list', params)
}

// 管理结算费用申请单
export const erpOmcTaskSettlementQueryById = (params) => {
  return http.get('/api/erp/audit/manage/erpAuditManageClearing/queryById', params, 1)
}
export const erpOmcTaskSettlementDetailList = (params) => {
  return http.get('/api/erp/audit/manage/erpAuditManageClearingDetail/list', params)
}

// 人员调岗单
export const erpHrEmployeeAdjustPostBillQueryById = (params) => {
  return http.get('/api/erp/hr/adjust/erpHrEmployeeAdjustPostBill/queryById', params)
}

// 人员调岗单-判断是否已经审批成功
export const queryHandleAdjustmentByEmployeeId = (params) => {
  return http.get('/api/erp/hr/adjust/erpHrEmployeeAdjustPostBill/queryHandleAdjustmentByEmployeeId', params)
}

// 人员调岗单-判断是否已经审批成功
export const queryAdjustmentTempData = (params) => {
  return http.get('/api/erp/hr/adjust/erpHrEmployeeAdjustPostBill/queryTempData', params)
}

// 档案查阅单
export const erpOaDocReferenceBillQueryById = (params) => {
  return http.get('/api/erp/oa/doc/erpOaDocReferenceBill/queryById', params)
}

// 项目存档申请单
export const erpProjectArchiveQueryById = (params) => {
  return http.get('/api/erp/omc/projectarchive/erpProjectArchive/queryById', params)
}

// 项目存档申请单--子表
export const erpProjectArchiveInfoList = (params) => {
  return http.get('/api/erp/omc/projectarchive/erpProjectArchiveInfo/list', params)
}

// 任务再委托
export const erpOmcTaskDistributionDtQueryById = (params) => {
  return http.get('/api/erp/task/erpOmcTaskRedistribution/queryById', params)
}
export const erpOmcTaskDistributionDtChildTable = (params) => {
  return http.get('/api/erp/task/erpOmcTaskRedistributionDt/queryByMainId', params)
}

// 关联档案基础表
export const erpOaDocBaseInfoList = (params) => {
  return http.get('/api/erp/oa/doc/erpOaDocBaseInfo/list', params)
}

// 关联项目存档清单
export const erpProjectArchiveFileList = (params) => {
  return http.get('/api/erp/omc/projectarchive/erpProjectArchiveFile/list', params)
}

// 根据ID查询关联档案基础表
export const erpOaDocBaseInfoById = (params) => {
  return http.get('/api/erp/oa/doc/erpOaDocBaseInfo/queryById', params)
}

// 根据ID查询关联项目存档清单
export const erpProjectArchiveFileById = (params) => {
  return http.get('/api/erp/omc/projectarchive/erpProjectArchiveFile/queryById', params)
}
// 物资调拨单是否有库存
export const erpPurchaseCannibalizeCheckStock = (params) => {
  return http.get('/api/erp/purchase/recipients/erpPurchaseCannibalize/checkStock', params)
}

// 离职申请单判断是否审批成功了
export const querySuccessResignByEmployeeId = (data) => {
  return http.get('/api/erp/hr/resign/erpHrEmployeeResignBill/querySuccessResignByEmployeeId', data)
}
// 离职申请单判断是否存在未提交的审批单
export const queryTempData = (data) => {
  return http.get('/api/erp/hr/resign/erpHrEmployeeResignBill/queryTempData', data)
}
// 离职申请单清空新增数据
export const editResignByEmployeeId = (data) => {
  return http.get('/api/erp/hr/resign/erpHrEmployeeResignBill/editResignByEmployeeId', data)
}
// 任务管理项目列表
export const queryDistributionProjectList = (params) => {
  return http.get('/api/erp/omc/project/erpOmcProject/queryDistributionProjectList', params)
}

// 岗位需求申请清空新增数据
export const clearRequirementEmployeeId = (data) => {
  return http.get('/api/erp/hr/post/erpHrPostRequirementBill/editPostByEmployeeId', data)
}
// 人员调岗清空新增数据
export const clearAdjustmentEmployeeId = (data) => {
  return http.get('/api/erp/hr/adjust/erpHrEmployeeAdjustPostBill/editAdjustmentByEmployeeId', data)
}
// 转正申请清空新增数据
export const clearRegularEmployeeId = (data) => {
  return http.get('/api/erp/hr/regular/erpHrEmployeeRegularBill/editRegularByEmployeeId', data)
}


// 物資调拨申请表单检查库存
export const checkErpPurchaseCannibalize = (data) => {
  return http.post('/api/erp/purchase/recipients/erpPurchaseCannibalize/checkErpPurchaseCannibalize', data)
}

// 关联费用报销申请单
export const erpFinanceReimbursementBill = (data) => {
  return http.get('/api/erp/finance/reimbursement/erpFinanceReimbursementBill/allList', data)
}

// 费用报销单单据详情
export const erpFinanceReimbursementBillQueryById = (data) => {
  return http.get('/api/erp/finance/reimbursement/erpFinanceReimbursementBill/queryById', data)
}

// 培训申请详情
export const erpHrTrainingApplyQueryById = (data) => {
  return http.get('/api/erp/hr/training/erpHrTrainingApply/queryById', data)
}
// 培训申请详情人员子表
export const erpHrTrainingDetailList = (data) => {
  return http.get('/api/erp/hr/training/erpHrTrainingDetail/allList', data)
}


export const queryPageListForProjectArchiveInputId = (data) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTaskFinal/queryPageListForProjectArchiveInput', data)
}

export const queryPageListForProjectArchiveInputList = (data) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTaskFinal/queryPageListForProjectArchiveInput', data)
}
export const erpOmcProjectTaskAllList = (data) => {
  return http.get('/api/erp/omc/project/erpOmcProjectTask/queryAllList', data)
}
export const erpFinanceKingdeeBaseBankId = (data) => {
  return http.get('/api/erp/finance/kingdee/base/erpFinanceKingdeeBaseBank/queryById', data)
}
export const erpFinanceKingdeeBaseBankIds = (data) => {
  return http.get('/api/erp/finance/kingdee/base/erpFinanceKingdeeBaseBank/queryByIds', data)
}
export const erpFinanceKingdeeBaseBankList = (data) => {
  return http.get('/api/erp/finance/kingdee/base/erpFinanceKingdeeBaseBank/list', data)
}
export const erpEmployeeTrainingList = (data) => {
  return http.get('/api/erp/files/employee/erpEmployeeTraining/list', data)
}
export const erpEmployeeTrainingResign = (data) => {
  return http.get('/api/erp/files/employee/erpEmployeeTrainingResign/list', data)
}

// 权限
export const queryPermissionsByUser = (data) => {
  return http.get('/api/erpmng/sys/permission/getUserPermissionByToken', data)
}

/* 
	培训申请start
 */
// 培训档案详情查询
export const erpHrTrainingFinalId = (data) => {
  return http.get('/api/erp/hr/training/erpHrTrainingFinal/queryById', data)
}
// 培训档案多个详情查询
export const erpHrTrainingFinalIds = (data) => {
  return http.get('/api/erp/hr/training/erpHrTrainingFinal/queryByIds', data)
}
//  培训档案列表查询
export const erpHrTrainingFinalallList = (data) => {
  return http.get('/api/erp/hr/training/erpHrTrainingFinal/allList', data)
}
/* 
	培训申请end
 */